/**
 * @author Yuri Denison
 * @since 10.08.11
 */
class AvlNode {
    // Constructors
    public AvlNode(Comparable theElement) {
        this(theElement, null, null);
    }

    public AvlNode(Comparable theElement, AvlNode lt, AvlNode rt) {
        element = theElement;
        left = lt;
        right = rt;
        height = 0;
    }

    // Friendly data; accessible by other package routines
    protected Comparable element;      // The data in the node
    protected AvlNode left;         // Left child
    protected AvlNode right;        // Right child
    protected int height;       // Height
}
